package com.treasure.mall.biz.entity.live;

import com.treasure.mall.biz.entity.BasePO;
import com.treasure.mall.zbq.common.constant.Constant;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.live
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/7/3 10:38
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.entity.live Inc. All rights reserved.
 */
@Entity
@Setter
@Getter
@Table(name = "zb_live_robot")
public class LiveRobotPO {

    /**
     * 创建时间
     */
    @Column(name = "create_time", columnDefinition = Constant.DATE_COLUMN_DEFINITION)
    @CreatedDate
    protected LocalDateTime createTime;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    @Column(name = "nick_name")
    private String nickName;
    /**
     * 消息文案
     */
    @Column(name = "message")
    private String message;
    @Column(name = "level_name")
    private String levelName;
    @Column(name = "level")
    private Integer level;

    public Long getUserId() {
        return System.currentTimeMillis();
    }
}
